#include <reg51.h>   
#include <intrins.h>
#define uchar unsigned char
#define uint  unsigned int
sbit led=P1^0; 
sbit beep=P2^0;
delay(uint time)                     
 {
  uint  i,j;             
  for(i=0;i<time;i++)    
     for(j=0;j<50;j++);  
 }


void main()          
{
	
	uint TEMP=0xfe;
	beep=0;
	while(1){
		TEMP=_crol_(TEMP,1);
		P1=TEMP;
		beep=~beep;
		delay(1000);
	}
	

}

